<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/css/admin.css" rel="stylesheet" type="text/css" />
<script src="/js/a.js"></script>
<script>
loadjs('admin/son');
loadjs('admin/view');

function select_cando(obj){
	var check = obj.checked;
	$('#'+obj.id+'_cando').find('input[type="checkbox"]').attr("checked",check);;
}

</script>
<style>
input{
	padding:0;
	vertical-align:middle;
	margin-right:3px;
}
label{
	font-size:14px;
}
table{
	margin-top:20px;
	width:100%;
}
table div{
	width:150px;
	float:left;
}
td.right{
	width:10%;
	border-right:#999 1px dashed;
}
td{
	padding-left:10px;
	height:50px;
	border-bottom:#999 1px dashed;
}
</style>
    
</head>

<body>
<div id="kk" class="p20">
<form action="__URL__/save" method="post" enctype="multipart/form-data" id="form">
<div class="f28 mb10 h70 title_box" style="line-height:70px;">
<img src="/img/adminiii/user.png" style="margin:0 10px -12px 10px;"/>权限管理 <span class="f20">&#65310; 编辑 {$val.uname} 的管理权限</span> 
</div>

<div class="pb5 tr" style="border-bottom:1px dashed #666;">
<a href="javascript:$('#form').trigger('submit');" class="u">[保存]</a>
</div>


<table>
<tr>
<td  class="right"><label for="content"><input autocomplete="off" type="checkbox" id="content" name="content" onclick="select_cando(this);"/>网站内容</label></td>
<td id="content_cando">
<div><label for="enter"><input autocomplete="off" type="checkbox" id="enter" name="cando[]" value="enter|enter_video"/>进入页显示</label></div>
<div><label for="case"><input autocomplete="off" type="checkbox" id="product" name="cando[]" value="product|sort"/>首页精选</label></div>
<div><label for="team"><input autocomplete="off" type="checkbox" id="news" name="cando[]" value="news"/>新闻</label></div>
<div><label for="join"><input autocomplete="off" type="checkbox" id="store" name="cando[]" value="store"/>店铺</label></div>
<div><label for="job"><input autocomplete="off" type="checkbox" id="job" name="cando[]" value="job"/>店铺</label></div>
</td>
</tr>



<tr>
<td  class="right"><label for="s"><input autocomplete="off" type="checkbox" id="s" name="s" onclick="select_cando(this);"/>系统设置</label></td>
<td id="s_cando">
<div><label for="setting"><input autocomplete="off" type="checkbox" id="setting" name="cando[]" value="setting"/>管理后台设置</label></div>
</td>
</tr>

</table>

<div class="mt20 tc">
<input autocomplete="off" type="submit" class="btn" value="保存" />
<input autocomplete="off" type="button" class="btn" value="返回列表页" onclick="window.location.href='__APP__/user'" />
</div>
<input autocomplete="off" name="id" type="hidden" id="id" value="{$_GET.id}" />
<input autocomplete="off" name="fid" type="hidden" id="fid" value="{$fid}" />
</form>
<script>

void function (){
	var cando_arr = new Array({$cando});
	for(var i=0; i<cando_arr.length; i++){
		$('#'+cando_arr[i]).attr('checked','checked');
	}
	
}()
</script>
</div kk>
</body>
</html>
